Use unlikely() in BUG_ON()/WARN_ON()
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 31 Mar 2009 12:22:12 +0000 (13:22 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 31 Mar 2009 12:22:12 +0000 (13:22 +0100)
commited25dad906fd3bec60fa79bc124afb3e854d67f0
tree02e99908dcbdf1f865a74dbb7ba0c592211bb15e
parent3f64466b4bfbc47a9cb97416d7ed883606a329d2
Use unlikely() in BUG_ON()/WARN_ON()

-fno-reorder-blocks was added in c/s 1712, when x86-64 just started to
become enabled. The reason it got added is entirely unclear to me, and
it prevents the intended effect of unlikely() constructs (in
particular
the ones added here) of moving out of line code which is expected to
never get executed, as well as using forward branches (which are
statically predicted taken by various processors' branch prediction
units) preferably to reach infrequently executed code.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/Rules.mk
xen/include/xen/lib.h